<?php use_helper('CrossAppLinkTo') ;  ?>
<?php use_helper('LightWindow'); ?>
<?php use_helper('Javascript'); ?>
<?php $module=$sf_context->getModuleName();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <script>
    function setButton(module){
    	//alert(module);
    	document.getElementById(module).style.backgroundImage="url(../images/menubutton.png)";
    	
    }
    </script>
  </head>
  <body onLoad="setButton('<?php echo $module ?>')">
  
  	<div class="mainScreen">
  		<div id="header">
	  	<div id="main"><div id="insidebutton"><span class='menutext'><?php echo link_to('Home', 'main/index', array("class" => "black")) ; ?></span></div></div>
	  	<div id="register"><div id="insidebutton"><span class='menutext'><?php echo link_to('Register', 'register/index', array("class" => "black")) ; ?></span></div></div>
	  	<div id="support"><div id="insidebutton"><span class='menutext'><?php echo link_to('Support', 'support/index', array("class" => "black")) ; ?></span></div></div>
	  	<div id="contact"><div id="insidebutton"><span class='menutext'><?php echo link_to('Contact', 'contact/index', array("class" => "black")) ; ?></span></div></div>
	  	<div id="login"><div id="insidebutton"><span class='menutext'><?php echo link_to('Logout', 'backend/logout', array("class" => "black")) ; ?></span></div></div>
  	    <div class="logo">TravelBug</div>
   		</div>
		<div class="mainContent">
		  
			<?php echo $sf_content ?>
			
		  <div id="loginWindow" style="display:none;">
		 <form action="/login" method="post">
		  <table>
		    <tr>
		  <th ><label for="signin_username">Username</label></th>
		  <td><input type="text" name="signin[username]" id="signin_username" /></td>
		</tr>
		<tr>
		  <th><label for="signin_password">Password</label></th>
		  <td><input type="password" name="signin[password]" id="signin_password" /></td>
		</tr>
		<tr>
		  <th><label for="signin_remember">Remember</label></th>
		  <td><input type="checkbox" name="signin[remember]" id="signin_remember" /></td>
		</tr>
		  </table>
		  <input type="submit" value="sign in" />
		</form>

			<?php echo link_to_function('Cancel', visual_effect('blindUp',  'loginWindow'));?>
		  </div>
		
    </div>
   <div class="socialnetworks">
		
		<?php echo link_to(image_tag('FaceBook.png'),'http://www.cnn.com') ?>
		<?php echo link_to(image_tag('Feed_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Furl_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Google_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('MySpace_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Twitter_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Netvibes_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Newsvine_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Reddit_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Simpy_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Stumbleupon_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Technorati_48x48.png'),'http://www.cnn.com'); ?>
		<?php echo link_to(image_tag('Youtube_48x48.png'),'http://www.cnn.com'); ?>
		</div>
		
		<div id="footer"></div></div>
		</div>
  </body>
</html>
